SftTree/NET 2.0

RemoveChildren Method, ItemClass Class

Softel vdm, Inc.

Removes the item's dependents.

Syntax      ItemClass Class (Softelvdm.SftTreeNET)

VB   

Public Sub RemoveChildren()

C#   

public void RemoveChildren();

C++   

public: void RemoveChildren();

Comments

The RemoveChildren method removes the item's dependents.

By deleting the item's dependents, the item becomes a leaf item which can no longer be expanded or collapsed. It is not an error to use the RemoveChildren method if an item doesn't have any dependents. The item itself is not deleted. To delete an item and all its dependents, the Remove method can be used.

This method can only be used for items in the item area.

If many items have to be deleted, the Initializing property can be used to indicate a mass-update, which is significantly faster.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com